package com.dj.common;

public enum  Code {

//    操作结果编码
    SAVE_SUCCESS(20011,"操作成功"),
    UPDATE_SUCCESS(20021,"操作成功"),
    DELETE_SUCCESS(20031,"操作成功"),
    GET_SUCCESS(20041,"操作成功"),

    SYSTEM_EXCEPTION(50000,"系统繁忙"),

    SAVE_ERROR  (20010,"操作失败"),
    UPDATE_ERROR( 20020,"操作失败"),
    DELETE_ERROR( 20030,"操作失败"),
    GET_ERROR  (20040,"操作失败"),
    PARAM_INVALID(20050,"参数错误") ;


    int code;
    String message;

    Code(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
//    系统错误编码

//    操作权限编码

//    校验结果编码

}